package Thread.CreateNewThread;

public class ThreadBlock {
    public static void main(String[] args) {
        Thread t=new Thread(()->{
            for(int i=0;i<10;i++){
                System.out.println("Thread "+ i);
            }
        });
        t.start();
        t.interrupt();

        for(int i=0;i<10;i++){
            System.out.println("Main "+ i);
        }
    }
}